package com.aiyige.model.eshop;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhuyakun on 2018/1/29.
 */

public class MediaSummary implements Parcelable{
    int	count;
    int	duration;

    public MediaSummary() {
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.count);
        dest.writeInt(this.duration);
    }

    protected MediaSummary(Parcel in) {
        this.count = in.readInt();
        this.duration = in.readInt();
    }

    public static final Creator<MediaSummary> CREATOR = new Creator<MediaSummary>() {
        @Override
        public MediaSummary createFromParcel(Parcel source) {
            return new MediaSummary(source);
        }

        @Override
        public MediaSummary[] newArray(int size) {
            return new MediaSummary[size];
        }
    };
}
